package net.piggy.core.util;

import net.piggy.core.model.HttpStatement;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class HttpStatementUtil {
    private final static Map<String, HttpStatement> statementMap = new ConcurrentHashMap<>();

    public static HttpStatement getHttpStatement(String uri){
        return statementMap.get(uri);
    }

    public static void putHttpStatement(String uri, HttpStatement httpStatement){
        statementMap.put(uri, httpStatement);
    }

    public static void removeHttpStatement(String uri){
        statementMap.remove(uri);
    }


}
